<template>
  <svg class="iconpark-icon item_icon" v-if="icon.indexOf('#') > -1">
    <use :href="icon"></use>
  </svg>
  <el-icon v-else>
    <Component class="item_icon" :is="icon"></Component>
  </el-icon>
</template>

<script>
export default {
  props: {
    icon: {
      type: String,
      default: "",
    },
  },
};
</script>
